TQADrawTriMeshGouraud
A drawing engine may define a method to draw a triangle mesh with Gouraud shading.
typedef void (*TQADrawTriMeshGouraud) ( const TQADrawContext *drawContext, unsigned long nTriangles, const TQAIndexedTriangle *triangles);
drawContext
- A draw context.
nTriangle
- The number of indexed triangles pointed to by the
triangles
parameter.triangles
- A pointer to an array of indexed triangles. See "Indexed Triangle Structure" (page 1-80) for a description of indexed triangles.
DESCRIPTION
YourTQADrawTriMeshGouraud
function should draw, with Gouraud shading, the triangle mesh specified by thetriangles
parameter into the draw context specified by thedrawContext
parameter. Each triangle in the mesh is defined by aTQAIndexedTriangle
data structure, which contains three indices into the array of Gouraud vertices previously submitted to the draw context by a call to theQASubmitVerticesGouraud
function.SPECIAL CONSIDERATIONS
TheTQADrawTriMeshGouraud
method is optional. If your drawing engine does not support triangle meshes, QuickDraw 3D RAVE decomposes a triangle mesh into individual triangles when the user calls theQASubmitVerticesGouraud
function to submit a triangle mesh.
Main | Page One | What's New | Apple Computer, Inc. | Find It | Contact Us | Help